<?php  if ( ! defined('BASEPATH')) exit('No direct script access allowed');

function base_url($append = '', $ssl = False) {
	$CI = CI_Controller::get_instance();

	if (!$ssl) return $CI->config->slash_item('base_url').$append;
	return str_ireplace('http://', 'https://', $CI->config->slash_item('base_url')).$append;
}

function asset_url($append = '') {
	$CI = CI_Controller::get_instance();
	
	return $CI->config->slash_item('base_url').$append;
}